package com.dxx.cloud.admin.utils;

import org.dromara.common.mybatis.core.page.PageQuery;

public class RequestUtils {
    public static void parsePageRequest(PageQuery request) {
        if (null == request) {
            return;
        }
        if (null == request.getPageNum()) {
            request.setPageNum(0);
        }
        if(null == request.getPageSize()) {
            request.setPageSize(10);
        }
    }
}
